Fix compile bug in windows