fix ruby/thread.h checking under 1.9.3