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

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