use rb_wait_for_single_fd when present (ruby 1.9)

rb_wait_for_single_fd could use poll (if present) instead of select