fix undefine in windows