Add support for GLESv2 on android. Remove a few warnings.