Removed 3 gotos. Their style makes it hard for readers to trace, and maintainers can make mistakes too easily.
(Also included is fix to configure to allow homebrew, another MacOSX package manager, to provide the needed libraries. Homebrew uses /usr/local rather than /opt/local which is the domain of macports.)