Fix the rule for compiling protobuf files (#693)
Merge review 421 by @mlucy