Add egl intializing

This PR adds some prerequisites for EGL Support.