auto detect number of cores for MSVC