changes for OSX build