Replaced pluginmanager.h with current unedited copy then edited to compile.