add AM_PROG_AM in configure.ac to ensure automake 1.12+ compatibility