Fixes to run on Windows.