fix gdal build in the event of a debug library [skip ci]