fixed windows Thread class to correct 64-bit compiling issue