Fix issue with multithreaded compilation