improving os x build scripts