try to fix various problems with wrong libsmac versions and mismatched
template files etc.