Win32Core::openFilePicker fixes

Without this patch, the "Add external files" button of the IDE doesn't
work, because the function return an empty files list.