update to latest protobuf
fix check for closed network connection
Merge pull request #49 from mreiferson/protobuf_changes_49

latest protobuf changes and compilation