fix build to compile on osx