Fix the bug in Windows caused by 'max' and 'min' redefined in WinDef.h