Update build system for recent autotools; fixes Debian bug #496126