Put the DirectX9 stuff into a namespace.

This makes it almost build on Windows, but not quite.  Some required files
excluded from build, still.
Merge pull request #3782 from unknownbrackets/dx9

Put the DirectX9 stuff into a namespace.