Make 'stream' OGR output compatible with FCGI with GDAL >= 2.0 (#4858)