Fix handful of Windows-only bugs.  --recheck still doesn't quite work there, alas.