THRIFT-2541 fixed C4003 with VC2012 around max()
Client: C++
Patch: Jens Geyer