add eglport and correct makefile