update capnp to 0.4.0

an update to issue #23688

This will upgrade capnp to 0.4.0,  refer to http://kentonv.github.io/capnproto/install.html