Implemented eglTerminate and eglDestroyContext.
Merge pull request #816 from juj/EGL_deinit

Implemented eglTerminate and eglDestroyContext.