Rewrite error getting for egl

Reverts #616
Renames the actual get-error-calls.