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