Fix to allow building dynamically on MSVC
Merge pull request #42 from zsbzsb/export_fix

Fix to allow dynamic building on MSVC