Drop struct thread_data dependency from os headers