WINDOWS: fix #1822