Fix dx9 so it builds on Windows (DOES NOT WORK.)
Merge pull request #3798 from unknownbrackets/dx9

Fix directx9 so it builds on Windows (but doesn't work)