Don't set AM_CFLAGS in configure.ac

This is bad form. AM_CFLAGS are only meant to be set in Makefiles.
Remove obsolete AM_CFLAGS
Add --enable-minimal-flags switch

This is useful for strict source distros.
Fix build with clang