OSX support

starting to tackle multi plaform support