Delay VertexDecl release until VertexBuffer is released.
Fixed shader and program cleanup.