build: Require GLib 2.40, needed for g_str_match_string()

Used in tracker-stats.

https://bugzilla.gnome.org/show_bug.cgi?id=739149