Initial round of MSVC build fixes.
Timeout handling on Windows.