Make 'stream' OGR output compatible with FCGI with GDAL >= 2.0 (#4858)
Fix previous commit with GDAL version < 1.10 (#4858)