Fix compilation on windows.
Merge pull request #454 from perroe/windows_compile_fix

Fix compilation on windows.