Make this a little closer to the Linux implementation by storing the overall state for the file in a struct rather than individually in each function as well as introducing a single initialisation function.
Add an implementation of getSingleCpuLoad0 and getHostConfiguredCpuCount0 for FreeBSD
ifdef out FreeBSD only sections
Testing:
Builds on FreeBSD
Connecting with jconsole appears to show reasonable data for a process, including the correct number of processors. I couldn't find the section for individual CPU load
ifdef out FreeBSD only sections
Testing: