explicitly qualify type when call std::min
remove Carbon dependency