Generate static libs for each plugin

Better modularity, simplify linking of *.so once plugins grow beyond a
single source file each.