Clean up old url handling on unix
fix url opening on osx

oops
typo
Don't use external players on Windows
Fix compiler warning
Some crucial cosmetics
Don't include if unused