Updated the GL detection in the build system

- Added a file checking if all required functions (according to gl.xml) are available.