Allow FreeBSD to correctly detect number of CPUs on host.

Use the same scheme as Darwin - `sysctl hw.ncpu' instead of nproc, which doesn't exist in FreeBSD