wayland: changes for nested compositors

Adds necessary checks for nested compositors which only have limited
interfaces. Might also be useful for other minimal compositors.