provide fake EGL display
log thread things in debug build
hook rewind, rm clearerr duplicate
Merge pull request #22 from notaz/review_fixes

Review fixes + one more hook