add delegate of to_io method for native function like rb_io_get_io.

IO::select raises TypeError because this method calls rb_io_get_io, a native function, only accepts IO instances.
Add "to_io" method for converting the wrappers to IO instances automatically.