Link against protobuf-c dependency, add generate step in build process