Fix build error on Ruby 2.2.0

rb_thread_blocking_region and rb_thread_select is removed from Ruby 2.2.0. I fixed it used by rb_thread_call_without_gvl and rb_thread_fd_select.