fixed compile error on windows