build `gen_ct` with AM_CPPFLAGS and AM_CFLAGS
Merge branch 'master' into devel