Improve script to build gcc on OS X (thanks to Brad Lucier)