fix redefinition caused by d3d9 patches