Implemented eglTerminate and eglDestroyContext.

Closes #814 (which was already closed though)