fix for compiling in visual studio