Add specifier "thread_local" for C++11 support.