Fix build for mingw and dll linking
Merge pull request #83 from mgreter/feature/build-dll-win-mingw

Fix build for mingw and dll linking