compiling libs + adding the to the template files