inherit cxxflags/ldflags from environment, if set