Unix socket build

Hello,

Here's a small PR which mainly implement a --enable-unix-socket flag in configure. It also detects the old version of libjansson and refuse to build it it is outdated.

BR,