Changes required to support android.

The new android support uses GL2, so we need to change some defines
to use it.