Use rb_enable_interrupt only when available (fixes #248, #389)
use rb_wait_for_single_fd in ruby 2.0