fix AM_CPPFLAGS vs AM_CFLAGS usage