Remove deprecated g_thread_init and g_type_init functions
Replace deprecated g_thread_create with g_thread_new
gdk_x11_window_lookup_for_display and gdk_window_get_screen are in gdk2
gdk_window_*_filter are in gdk2
Bump glib required version
Drop support for glib < 2.36