Initial file rearrangement.
Moved the entire project to .NET 4.0 and patched threading code.
It now successfully compiles in VS 2012.