Fix for compiling error for windows