here's some bits to fix CFLAGS to CPPFLAGS