wrap libwnck code so it runs only on X11

This is necessary to use Epiphany on Weston, the
Wayland compositor without having to run XWayland.

https://bugzilla.gnome.org/show_bug.cgi?id=708955