Fix OSX build error