Add support for D3D9Ex