small compile fix for thread_t