Allow setting the number of threads to use while building