fixed protobuf related build errors

Hi there!

cool project. I wanted to play with the deterministic wallet implementation, but faced build errors. maybe you are interested in the fix.

when building the first time I faced build errors like this:
http://snipt.org/Ahgif1 and test failures.