fix compiling error on win