Fix thread_design build