Fixed dll export for D3D device.