support older json-c versions (required for Travis)