(D3D) Add HAVE_CG/_XBOX ifdefs