update protobuf definitions, add build_pb.sh script