Fix undelinking issue with plugins and plugin-loaders