Add '-fpermissive' to line 25:
EMUGL_COMMON_CFLAGS := -DWITH_GLES2 -fpermissive

Change-Id: I2a437c0573e19a6bd2bcbaa5cf802e2a9846c79f