Find json-c library by json or json-c

Gentoo installs the json-c pkg-config file as json-c.pc. Check if
json-c.pc exists, otherwise fallback to json.pc.