Preliminary OSX support