Refactor ifdefs
ofLaunchDefaultApp: tested multibyte filename on Windows.