Update makefiles for automake/autoconf deprecations