Update archive.cc to capnp API