Fix build with autotools 1.13.

The configure system used the old macro AM_CONFIG_HEADER, which aclocal-1.13 fails on with an error. I migrated to the suggested replacement AC_CONFIG_HEADERS, which fixes the issue.