Thin3D: A thin OpenGL/D3D9 wrapper for basic rendering.

Only the OpenGL implementation actually works yet.
Slip thin3d underneath DrawBuffer/UI
Crashfix
Fix vertex declarations. Hook up some more of D3D9 (doesn't work yet)
Thin3d: Add some untested texturing stuff
Switch to Thin3DTexture. GL still works, d3d still broken.
Thin3d: Add cull mode, other fixes
More Thin3D work (textures etc)
Some more thin3d
Thin3D now actually draws some stuff
Thin3D: Add APIName query. Swizzle texture colors in D3D.

(not sure whether it's best done in the shader or in the texture data...)
Add Thin3d support to draw_text (Qt not touched)
Thin3d: Minor shader cleanup
Fix Linux/Android compilation.
Fix some type conversion warnings.
Merge pull request #231 from unknownbrackets/thin3d

Fix Android/Linux compilation
Remove a comment, add some checks.
Clean up D3DX loader a little
Thin3d D3D: More system information, other minor fixes
More thin3d minor fixes