Merge pull request #285 from orgads/mingw

Fix compilation with MinGW