Add shared library code::block template.