fix for protobuf 2.5