It currently does not seem to be possible to export a function from a DLL on Windows. It's not done as one would expect when building with --lib.