As for dynamically loaded ones - it is somewhat tough question. Loading non-local plugin .so libraries is quite unusual, Derelict is the only software I know that does it. I am not sure it is even a good idea in general.
Are there any examples how this is solved in other languages / platforms?