Minor cleanup

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Imgtec specific fixes to build script and OpenGL ES stat code

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>