Address various visual studio compiler warnings