Replace undocumented deprecated g_thread_gettime
Bump minimum glib version accordingly