Added project files for visual studio 2011.
Fixed visual studio 2011 project files and compilation issues.