Fixed test driver MSVC-specific tty stuff
Fixed type conversion issues for 32-bit
Added missing include for windows
Better fix
Corrected windows code for benchmark