fix win7 compile error