d3d9: fix compilation after opengl rework