visual studio solution and warning fixes