Use OSError instead of non portable WindowsError