json-c: Update to 0.12

Please take a look at src/json-c-3-remove-w32-crypt-function.patch
before accepting the pull request, this may have security implications
Why did you remove the check for `strndup()`? Simply checking if a function is there doesn't make configure exit with error if it is not there.