osx build fix