win: Fix compilation errors