Move global AM flags to Makefile.am