Load plugins correctly

Each QPluginLoader can only load one instance of a plugin.
This used to cause a segfault on exit.