Find json-c library by json or json-c

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