Detect version on windows
Merge pull request #334 from mattn/win32version

Detect version on windows