Fixing OSX build