Find json-c library by json or json-c

On Gentoo the json-c pkg-config file is installed as json-c.pc. If
json-c.pc exists, use it, otherwise fallback to json.pc.