Windows porting
Merge pull request #3 from mattn/win32porting

Windows porting