Fixed build and install of pluginsand some old mistakes in ppbuild.sh script