added multithreaded compliation