use standard BUILD_SHARED_LIB option. Install dll to <prefix>/bin (mingw)
Fix for issue #177 with mingw
Merge pull request #255 from xantares/master

mingw|cmake fixes