Yeah, you need to disable MAME's built-in "-video OpenGL" renderer, it won't link on systems with only GLES. Add NO_OPENGL=1 to the make command line (and REGENIE=1 to regenerate the build files).