Fixes to run testcases on Windows.