Allow FreeBSD to correctly detect number of CPUs on host.

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