osx fixes for build script... getting closer