Fix "make install" without JSON support

Don't bail out during "make install" when ./configure was called without
"--enable-json".
Merge pull request #337 from weiss/fix-install-without-json

Fix "make install" without JSON support