Honor CFLAGS, and set some sane defaults.