Updated according to latest protobuf changes.

See issue CERT-Polska/hsn2-commons-java#10