egl: add void library, we need to implement driver on platform_haiku.cpp
egl: More functions for Haiku
egl_dri2: fix plafrom_haiku includes

Drop the gralloc_drm which is android specific header and
remove the leading .. in the loader inclusion.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
egl_dri2/haiku: whitespace cleanup

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
egl_dri2/haiku: coding style fixes

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
egl_dri2: a ton of blob

Attempt to get a egl_dri2 SConscript
 - Drop going into the gallium egl-static
 - Promote the main library to a shared one.
 - Convert libEGL_Haiku into a conv. library - shove a demo platform_x11.
 - s/HAVE_EGL_PLATFORM_HAIKU/HAVE_HAIKU_PLATFORM/
 - A ton of extra crap all over.

Not even build tested, and I don't expect it to build properly yet.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
egl: scons: link against libloader

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
egl: Resolve Haiku build issues

* Builds perfect and it loads the driver.
* It still reports EGL_NOT_INITIALIZED
egl: Adding Haiku configs, not stable yet
egl: Improve configuration creation for Haiku.

* Creates a configuration, but it does not work
Haiku: Remove DRI2 code as it doesn't support Haiku yet.

* EGL on Haiku now working
Works if we disable the EGL_BAD_SURFACE error