eglretrace: Fix some EGL typos.

* Properly set the current API. Otherwise several egl function are lost (eglGetCurrentContext return NULL)

* Use read enum for the read surface