Support compiling Thread for Win32 on ARM.
Merge updates from trunk.
update to latest TEA
merge win32-arm to trunk