Small fix to change 32 vs 64 bit thread compiler error.

Found this during testing 32 bit vs 64 bit with visual studio 2012.