Conditionally use rb_thread_select on ruby 1.8.7
Merge pull request #6 from gauteh/ruby_1_8_thread_select_compat

Conditionally use rb_thread_select on ruby 1.8.7