Updated json-c and patch postgis to link against it.

we will need to remove the postgis patch on the next release.