Fix DCMTK dictionary crashes in plugins

Build it as a shared library in superbuild