Fix linking problems that only come up when using Ubuntu's libtool to build a dist and then installing it on OSX.  libkj.la was not listed in libcapnpc's deps.  Also put the pthread libs last since that's more correct.