Fixes for MSVC warnings

Should I keep fixing things like this?  My fixes may not be in the style you would prefer, but once I've seen how you prefer to fix these, I can clean up the rest.