Fix building in OSX