VS2013 fix

std::min need one more include since VS 2013 (see http://msdn.microsoft.com/en-us/library/bb531344.aspx)