merge @mattn's win-compatibility