Merge pull request #23 from mattn/win32

Windows porting
closes #23