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
The removal of the check was done in upstream. This patch only removes the checks for malloc(0) and realloc(0).