visual studio 2010 & dx sdk june2010 compatibility fixes

Since this wrapper project is similar to what I'm trying to do to tie95, I tried compiling it.