Respect CFLAGS, LDFLAGS and CPPFLAGS.