Fix missing WindowsError on POSIX platforms