remove redefinition warnings in compiling tests
remove stray )

The rest is indent stuff from the stray )
display: fail properly in context creation in order to minimize a race condition

previously, on context creation, when we failed to get a valid context
we would still atempt to run the window mainloop as well as setting an error
on the display. This would cause the calling element to finalize the display
and therefore attempt to quit the window mainloop.  However the mainloop
may not have started running.  Thus when the window mainloop ran it would
never a get a quit message and never end.
wayland egl: deactivate context before we destroy it

avoids a segfault with dri drivers
fixup compile errors
window_x11: compact debug info
x11_egl: add prelim support for choosing opengl or gles
window: add get_proc_address + stub for retrieving gl functions
add get_proc_address implementations for egl and glx
build: add missing file to built sources
display: feature check for GL extension functions