Compile fix for visual studio