Ignore common transient files.
Harmonize autogen.sh within project.

This version should work on all supported platforms, opting to using
autoreconf if available.