Remove some more deprecated OpenGL functions and start to port to OpenGL ES 2.0
Update CMakeLists.txt