early work on DLL exports for sweet lib, stop using <cstdio> which mingw seems not to like cuz snprintf()