Removed cmake from dependencies.
Use 'nproc' to detect number of CPU cores.