Fixed d3d build.