Make varint serialization work on MSVC.