fix build for osx