[Bug 595607] Apply upstream fix to correct a serious regression with warping big images in GDAL 1.7.1