Added multi threading to compilation task.