compile_mesa: preserve CFLAGS and CXXFLAGS