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

This fixes it so it compiles, some of the mistakes are mine while namespacing it.

It does run, but it will soon crash whenever it tries to decimate a texture since they are all NULL.  Also, you can't see anything - I'm relatively sure it's not copying anything to the screen or anything...

-[Unknown]