targets/egl-static: Assorted cleanups and fixes.
targets/egl-static: Assorted cleanups and fixes.

Share more code between windows and non-windows platforms.  Check
env['x11'] for X11 and add env['X11_LIBS'] to LIBS.  Add ws_wrapper for
i965g.

dellis1972/glsl-optimizer,djreep81/glsl-optimizer,zeux/glsl-optimizer,zz85/glsl-optimizer,jbarczak/glsl-optimizer,adobe/glsl2agal,tokyovigilante/glsl-optimizer,bkaradzic/glsl-optimizer,mcanthony/glsl-optimizer,mapbox/glsl-optimizer,dellis1972/glsl-optimizer,KTXSoftware/glsl2agal,benaadams/glsl-optimizer,zz85/glsl-optimizer,dellis1972/glsl-optimizer,zz85/glsl-optimizer,mapbox/glsl-optimizer,dellis1972/glsl-optimizer,adobe/glsl2agal,KTXSoftware/glsl2agal,mapbox/glsl-optimizer,adobe/glsl2agal,mcanthony/glsl-optimizer,benaadams/glsl-optimizer,djreep81/glsl-optimizer,adobe/glsl2agal,zeux/glsl-optimizer,wolf96/glsl-optimizer,KTXSoftware/glsl2agal,zz85/glsl-optimizer,tokyovigilante/glsl-optimizer,jbarczak/glsl-optimizer,adobe/glsl2agal,benaadams/glsl-optimizer,zz85/glsl-optimizer,benaadams/glsl-optimizer,zeux/glsl-optimizer,tokyovigilante/glsl-optimizer,jbarczak/glsl-optimizer,djreep81/glsl-optimizer,zeux/glsl-optimizer,jbarczak/glsl-optimizer,mapbox/glsl-optimizer,tokyovigilante/glsl-optimizer,KTXSoftware/glsl2agal,wolf96/glsl-optimizer,zeux/glsl-optimizer,wolf96/glsl-optimizer,metora/MesaGLSLCompiler,benaadams/glsl-optimizer,metora/MesaGLSLCompiler,djreep81/glsl-optimizer,mcanthony/glsl-optimizer,KTXSoftware/glsl2agal,dellis1972/glsl-optimizer,bkaradzic/glsl-optimizer,djreep81/glsl-optimizer,bkaradzic/glsl-optimizer,bkaradzic/glsl-optimizer,wolf96/glsl-optimizer,tokyovigilante/glsl-optimizer,jbarczak/glsl-optimizer,zz85/glsl-optimizer,mcanthony/glsl-optimizer,wolf96/glsl-optimizer,mcanthony/glsl-optimizer,benaadams/glsl-optimizer,bkaradzic/glsl-optimizer,mapbox/glsl-optimizer,metora/MesaGLSLCompiler