fix strange compile error on windows