revert back to static library; dll version has an issue on windows (some symbols are not correctly exported most likely