Add build script for OS X.