previewer: Fix g_thread_init deprecation
libview: gdk_display_get_app_launch_context is available only in GTK3

Add fix for GTK2