Add runtime libs to enforce correct version
Fix template build and compilation