Fix previous commit with GDAL version < 1.10 (#4858)