Don't use namespace std. It makes things too confusing.
Fix the formatting to use tabs instead of spaces, easier to read this way.
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