Update c and cpp templates