Not sure though - <algorithm> was not included but in any case

- TMath::Min instead of std::min should help.