update submodules, determine number of CPU cores.