Improve OStream compatibility with IO

This patch only fills in some standard interface parts expected from standard IO; in my particular case I wanted to run Minitest reporter inside IRuby notebook. `sync` attr accessor, for example, does nothing.