Mac OS X support and BSD function stubs

Reorder the functions, begin OS X specific functions
Load averages and Memory usage now works on OSX (I hope the calculations are correct)
Minor edits
Finish OSX support - Fixes CPU usage