Fix build script for Mac OS X.