Added a host call to get the number of CPUs. It should work on all POSIX unixes, linux and Windows.