Adds egl API

It is not 100% complete and the code to load the lib should be generalized, but this should be a good starting point.
I had a working demo with this some time ago.

This should help for #375