changes for osx building