fix osx build error