Fixed all of visual studio's compile warnings