Support building on win32

These commits support building the addon on win32. I added a FindDirectX.cmake file to find the necessary include and library paths and fixed the CMakeLists.txt (I hope I didn't break non-win32).