Fix dependency build script on MacOS X.