use prim instead of plugin_strategy_invoke
removed some generated files
fixed build.main.xml: generate lib files before str compile
fix