Move AC_CONFIG_HEADERS toward the end.

Output of config.h should be listed along with the other output files.