Check for 'json' if 'json-c' missing

This allows for builds to work on 12.04 Ubuntu LTS