improve gdal configure hacks