Conditionally use rb_thread_select on ruby 1.8.7
Merge pull request #5 from gauteh/ruby_1_8_thread_select_compat_1_2

Conditionally use rb_thread_select on ruby 1.8.7