Set number of build threads and simultaneous tests to the number of CPU cores.