Revamped OS X build script