GLES 1.x support

Makes spacerocks compile on pandora with: 
cmake -DGLHCK_USE_GLES1=ON

And contains some other minor cleanups in cmake files.