Merge pull request #998 from lakkatv/lakka

(GLUI) Adapt to font size
Merge pull request #999 from lakkatv/lakka

(GLUI) Fix missing quit entry
gl: Silence a possible null dereference warning
Merge pull request #1000 from lioncash/deref

gl: Silence a possible null dereference warning
(D3D) Some fixes to render_chain.cpp and d3d_wrapper.c
(GLUI) Refactor code
(D3D) Merge big included files into d3d.cpp
(D3D) xdk_defines - cleanups
(D3D) Pass 'Pass' and 'LinkInfo' by pointer instead of reference
(D3D) Rewrite create_vertex_buffer wrapper function
(image_xdk1.c) Use d3d_vertex_buffer_new
(D3D) Create d3d_vertex_buffer_free/d3d_texture_new/d3d_texture_free
(D3D) Start going through d3d_texture_free/d3d_vertex_buffer_free
(D3D) Cleanups - only go through d3d_vertex_buffer_new
(D3D) Rewrite renderchain_add_lut
(D3D) Build fix
(D3D) Use d3d_texture_new
(D3D) Build fix
(D3D) Go through d3d_texture_new
(D3D) Build fixes