d3d10core: Keep a reference to the wined3d device in the d3d10 device.