Replace CFLAGS with pkg-config to avoid warnings