Disable deprecation warnings for tests

This is a change in newer GLib which breaks make check if we
don't disable it.
2.24.25