WindowsError is not cross platform, use OSError instead.

Thanks to user me.ssword for pointing this out.

Fixes Issue 5034