Add a missing using std::max and std::min. Thanks to Philipp Bender for reporting this. Change-Id: I1f2947d378e0e98f6d225126a686d52738df3df0