Reenable video IO tests on Windows and backport a few fixes from #1664