If the EGL extension EGL_KHR_create_context is available, we can use it to set the core/compatability profile and the minimum OpenGL version. Use this if it is available to get the context requested by the GL attributes.
To note, this file is currently formatted with CRLF line endings, rather than LF, to allow the file to be viewed with Notepad.