Fix a few errors with protoc compiling.

I'm on a train unable to lookup the enum syntax for protobuf.