make it compile on mac-osx