fix compiling in visual studio