glib: add compatibility interface for g_strcmp0()