(XDK D3D) Cleanups