Compatibility with glib-2.0.x - missing g_str_has_suffix().