Windows patch (compile with MinGW, work with select backend)