Fix missing include for std::min