Fix linux|mingw shared|static build
Merge pull request #159 from xantares/master

Fix linux|mingw shared|static build