Updated gitignore for msvc.
Code fixes for msvc.