Fix compilation crash on windows.
Merge pull request #1235 from nouiz/windows

Fix compilation crash on windows.