Macport

OSX port work (in progress, not working)