Move to build time protobuf generation

Current pre-compiled protobuf source files are not compatible with current protobuf releases. These changes compile the proto file at build time to prevent version incompatibilities.