Change std::max to max

Fixes error compiling on Windows 7 with Visual Studio 2012 Command Line