fix Windows build
Merge pull request #878 from dsyme/fix40

fix Windows build