adding some fixes for osx install