build: support for automake-1.13

AM_CONFIG_HEADER is long obsolete; replace by the more timely
AC_CONFIG_HEADERS. Also nuke that ancient AM_INIT_AUTOMAKE syntax.