Support directory paramater for ./configure --with-libjson. Only support libjson 0.10, 0.11, 0.12.