cmake: Fix d3d8 wrapper build.