Updated Mac OS X build scripts