Fix open_url on OS X