Updated build scripts for OS X