adding imports for OpenGLES/ES2/gl.h, and fixing variable casts. Also comment out bad for loop