check for gl2 header when checking for GLES

newer NVidia drivers install GLES libs which caused build to fail.