Fix makefile dependencies for protobuf files (#442)
Merge review 386 by @srh (Closes #442)