64 bit warnings

Use size_t where appropriate to prevent conversion warnings. 
`json_error_t` cannot be updated because a change like this would break ABI compatibility.

Users create `json_error_t` on the stack in their code. After this change, Jansson's library functions expect a different ordering and size of the fields, so existing user code will crash if not recompiled.