Add FreeBSD support to num_cpu_cores() function, just like Darwin