Remove more autogenerated files and various autofoo fixes

distcheck now passes.