Stop build-osx.sh on errors.