Added a check for glib version so we can compile with glib versions that don't have g_hash_table_contains