Fix linking under mingw. Native functions not exported into dll correctly
Merge pull request #22 from hsn10/master

Fix linking under mingw