Build in threaded mode, use all cores