fix file chooser functions on Win32