Fixes for Windows.