Support setting CFLAGS and CXXFLAGS for libraries/programs