MainLoop.cpp uses C assert but doesn't include the header.

Reviewed by: Lauro Neto
Always use OpenGL ES2 when using EGL.

This make possible run API tests on rPi board where EGL + OpenGLES2 is used.

Reviewed by: Daker Fernandes Pinheiro