CI 'regular': fix static builds when doing perf checks