(Apple) Fix OSX build