fix osx compilation