Fix autotools deprecations