Fix build on windows
Merge pull request #31 from mattn/win32

Fix build on windows