gdal: failed to compile in x86_64-w64-mingw32.static target

without this changes "./configure" can not find libjson-c at least in the x86_64-w64-mingw32.static target (at master branch)
Fixed differently: 5339e2c6d3bbf397275f7756d5b045f9277cb276