Call g_thread_impl_init(), as g_thread_init won't call it.