Use gdk_x11_window_lookup_for_display also in gtk+2
Drop support for gtk+ < 2.24
Use gdk_x11_set_sm_client_id also for gtk+2 (since 2.24)
Use GDK_WINDOW_XID