Changed build type of libraries from static to shared.
Added base plugin system.