don't create pointer to pointer in str2cstr
ncurses_wrap.c: make sure y and x are initialized
ncurses_wrap.c: use new rb_thread_fd_select avoiding deprecated functions