Fixed compilation under MINGW64

Necessary on mingw64 2.22
Merge pull request #108 from ddiproietto/patch-1

Fixed compilation under MINGW64