First pass at an OSX implementation

Compiles and runs OK. Local MAC address currently returning 0 - need to fix this. 

Also need to port a couple of fixes back to the Linux implementation.