Fix CFLAGS for logging