Use CPPFLAGS instead of CFLAGS.