Removed deprecated g_thread initialization