Add MS Visual Studio 2010 project. Fix debug building for MSVC10.