Can't define DIRECTX in a source file.  These are declared in the project properties.  This is causing non-DirectX platforms to fail to build.

Also, why does it need "using System.IO"?