add improved autotools fixups