configure: add minimal sanity check on user provided CFLAGS and CPPFLAGS