Fix autoconf deprecation by using AC_CONFIG_HEADERS