Implement thread id in windows platform