Fix compilation with new autoconf.

It seems that new autoconf release has deprecated AM_CONFIG_HEADER. This
commit substitutes old param with new one.