Two small commits to fix the build with automake 2.13

The first patch replaces AM_CONFIG_HEADER which was removed, with AC_CONFIG_HEADERS.

The second patch changes a dependency slightly, from "config.c" to "../config.c". I'm not sure what happened here but the change allows the program to build with automake-2.13.