changes made trying to build on osx