Fix Fruitjector on OS X Mavericks

The legacy cthread_set_self() API is finally gone.