fixed build for plugin dependencies, plugins are now built after main source code