Fix EGL error handling.
Port eglMakeCurrent, glGetString, Android logging to Rust.