(D3D) Build fixes