cmake: use pkg-config to find json-c

Helps if json-c is installed in an odd place