gdal: Fix json-c

Based on patch by Luis Saavedra <luis94855510@gmail.com>

Closes #504

Signed-off-by: Timothy Gu <timothygu99@gmail.com>