updated AM_CFLAGS and AM_CPPFLAGS in Makefile.ams.