Updated autogen.sh with Alex's changes for Mac OS X users.  Tested on Lewis' and
Tony's Macs (it works!)