link to a dll

Take a look at the Plugin system.

If this is a third party library you can setup a third party so it can be used by any part of the engine.

There are plenty of Plugin examples: \UE4\Engine\Plugins