latest protobuf changes and compilation

this updates the code to the latest goprotobuf changes cc @ha