random visual studio warning fixes