Get more explicit about linkage class of methods on windows. Make into a shared library for testing purposes.