Android Bounty

Great work!

I didn’t use your patches since they would break some GLES2 and regular OpenGL functionality, but I pushed some fixes that should address all of the compiler errors.