Changes so it builds on OSX, quick hacks, all changes need review before pulling to master.  Powermate needs a proper fix, this was just for testing.

KD0NUZ