Replace the broken version checks with one modeled after `GLIB_CHECK_VERSION`. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2557>