fixed some errors in examples

so you can run it
Merge pull request #1 from cesine/GLES2

fixed some errors in examples