Configure multithreading in header building