add VS2013 compatibility

back-ported from protobuf 2.6