Update script to build on OS X, change output file name