Don't let compilation threads become larger than number of CPUs