script to build for OSX versions