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.
Merge pull request #381 from almarklein/lib-egl

Adds egl API