fix bug related to "WindowsError" definition. Thanks Frederic.