Mir and Wayland support

Would be great to have this in the official XBMC version!