fix the compiling problem in windows