(D3D) d3d_wrapper.c build fixes