fixes for osx deploy