fixed bug of Thread implementation in windows platform
add ThreadEx implementation for windows platform