Patch the protobuf code to build in MSVC2013.

It needs an <algorithm> include to get min() and max().