fixed some D3D macros