Update CPPFLAGS to fix segfault