C89 fixes plus MY_CXT leak fix

This PR replaces https://github.com/rurban/Cpanel-JSON-XS/issues/19