Talking about *stream, I guess you all still remember our boost::iostreams trouble with LyX 1.5.0. I recently figured out (from my own project) why boost::iostreams failed under windows. If you guys are still interested in replacing gzstream with boost::iostreams, I can prepare a patch when I get a chance.
Cheers, Bo