Added basic memory management and tracking to wined3d.

7 files changed