check for gl2 header when checking for GLES
Merge pull request #286 from FernetMenta/gles

check for gl2 header when checking for GLES