Fixed building against gdal versions < 1.11.0.