x86 thread local storage tweaks