fix OSX build