fix some g_thread_init deprecations