Use gdk_x11_set_sm_client_id also for gtk+2 (since 2.24)
Use GDK_WINDOW_XID
Drop support for glib < 2.36