Add autoconfiguration for libjansson

This is necessary to build ccnet for Arch Linux (and I'm sure other distributions as well, though I haven't tested them).