fix windows build issue for ThreadPool