more egl hooks (enabled through makefile)