GtkSocket and GtkPlug are no longer in gtk.h but in the X specific
header gtkx.h for GTK 3. GDK X header is needed for the gdk_x11_*
calls. Add the conditional includes to fix compilation for functions for
this widgets.