gles2: fix function signature
gles2: move the loader object into gles2.d
gles2: add missing return value