Fix compile error on windows

Fix #367