fixed build on osx