Add automatic build of libcapnp if it's not detected
Add travis configuration to run with and without libcapnp pre-installed