d3d: Reduce D3DX leaks.
d3d: Report shader compilation failures.
d3d: Release vertex decls on shutdown.
d3d: Release shaders and fbos on shutdown.
d3d: Release on shutdown in headless.

Could sync it up, just want to be able to run tests without major leaks.
Update native (reduce d3d9 leaks.)
Merge pull request #6854 from unknownbrackets/d3d9

Report shader errors in Direct3D 9, plug some leaks