fixed compiling on visual studio