Improve autotools

Modernize configure.in to configure.ac and cleanup autogen.sh