Imported curses ext for 1.9

Only 1.9 mode for now because 2.0 needs rb_thread_call_without_gvl implementing first in C-API