Import gdal only if it available. (RasterLayer): Handle the case where the gdal library is unavailable. Addresses RTbug #1877.