media: Check for gstreamer verion instead of using cc.links()
This fix error when gstgl_dep comes from a subproject because in that case it cannot be used in compiler checks.
This fix error when gstgl_dep comes from a subproject because in that case it cannot be used in compiler checks.