Also make compilation automatically determine the number of threads to use during compilation. PiperOrigin-RevId: 344264761