fix immediate exit after opening vlc on osx