g_thread_create() is deprecated in GLib master, use g_thread_try_new() instead