Fix build on Android

Does Android really have no log2()?
Improve logging, implement for Android
Try to do the right GL includes on Android

I'm sure I broke things.  Will fix later.  Also, assumes GLES2
and GLUT on Android.
Enable GL_OES_standard_derivatives in glyphy-demo under ES2
Remove unnecessary cast
Fix math