fix Mac build scripts

Fixes Mac OS X build scripts.