Fix build failure due to the use of the obsolete AM_CONFIG_HEADER macro.

Replaced with the recommended AC_CONFIG_HEADERS macro.