fix build with GDAL <=1.9