Fix a singleton bug in win32