root: few changes

* fix building without XCode
* disable old workaround
* cocoa as default, :x11 as :optional
* refactor argument list