write_redis: append to CPPFLAGS, not CFLAGS