Modifications for build without GDAL.