Fixed some plugin manager and compiler bugs