Changed declarations using _Thread_local to use thread. I'm fairly sure they do exactly the same, but thread is: