Fix autoconf/automake deprecations