fix windows compiling errors.