Initial implementation of OSX support