This fix error when gstgl_dep comes from a subproject because in that case it cannot be used in compiler checks.