fix OSError is unsubscrible exception under win32