CMake: get rid of stupid dependencies, use pkg-config
As for now, ES checks for some libraries to know if it's compiled for OpenGL or OpenGLES + some Mali crap. This sucks
It all should depend on .pc files if gl.pc is found then desktop OpenGL elseif egl.pc + gles2.pc found then OpenGLES
This way it would remove some stupid patches on Buildroot side