add template to all libs

avoid unset variable errors