Update build_parser.sh to work on OS X.