Compiles with ogl-es 1.x again

git-svn-id: http://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/ogl-es/@4499 dfc29bdd-3216-0410-991c-e03cc46cb475
Also fix compilation for ogl-es 2.

git-svn-id: http://irrlicht.svn.sourceforge.net/svnroot/irrlicht/branches/ogl-es/@4501 dfc29bdd-3216-0410-991c-e03cc46cb475