fix osx compile