Reduce dependencies

This makes things easier for packaging.
The formats check simplification was initially done for being able to move it outside eglvivsink together with some other stuff in order to enable GLTextureUploadMeta in other vpudec and v4l2src, but is is also needed to remove the GLESv1 dependency and I don't see why not having it like that anyway.