Compiler fixes for Clang.
Fix for last of failing protobuf tests on MSVC.