Fixed DirectX 9

I accidentally forgot to include a few things in that last commit. Merge when ready, I've now switched my desktop back to Windows 7 and will be further developing the DirectX graphics ports from here from now on.