This brings the demos also to KMS and removes about 400 duplicated lines of code.
eglut is a simple library with GLUT-like API. It is intended to be used by simple EGL demos.