fix visual studio warnings