Compile with OpenGL ES2.
Silence some warnings and minor cleanups.