Fix reference errors
Upgrade capnproto plugin
Move dependencies to example