guard against the possibility of GDAL not being available

I suppose you could also exclude OGR.cpp and OGR.hpp at the CMakeLists level. Curses.cpp may be a bit frail now though...OGR was the "else" in a number of places.