fix warnings from visual studio