Thank you matsp. The problem seems to be the extern "C" linkage. If I take that out, run time loading does also fail with mingw.
So the correct question should probably be: How can I get MSVC to compile the DLL functions with extern "C" linkage, if that functions returns non-pod types/classes ?