fix instantiation problem of static variable in Windows.