Osx build fix