Fix compilation errors on Windows.