Minor fixes for later-on OpenGL ES support
Merge pull request #78 from tomaka/opengles-fixes

Minor fixes for later-on OpenGL ES support