fix compilation for Windows
Merge pull request #495 from gordon/windows

fix compilation for Windows