autotools tweaks

In the process of considering reviving this package in Debian I updated the build system, and removed derived files from the repo.