added EGL init, not working though, fixes #5