Added VS2013 solution and projects, and fixed related errors and warnings (though unit test for exceptions does not pass under MSVC yet)