Conditionally use rb_thread_select on ruby 1.8.7