DX9: fixed cubemap upload.
Cleanup.
DX11: Fixed assert when running with GPA.
Delay VertexDecl release until VertexBuffer is released.
Fixed shader and program cleanup.
Fixed GCC warning.
Handle exit message from window manager on Linux
Merge pull request #41 from jsimmons/master

Handle exit message from window manager on Linux
Cleanup.
Merge remote-tracking branch 'upstream/master'
Added uniform reference counting. Reorg some header/source implementation.
shaderc: Fixed return value on error.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	src/bgfx_p.h