__thread is ignored on Windows :(