We should probably be setting AM_CFLAGS here, rather than CFLAGS directly.