Added .sln and .vcxproj files. Minor changes to build under windows.