Porting to win32
Merge pull request #158 from mattn/win32

Porting to win32