update c and c++ templates
add missed import