better support for osx builds