Recycle linux code for OSX, still needs some work.
OSX-specific changes
finish OSX-specific changes
Add instructions for installing on OSX