add option to enable codec in codec_init

Link: https://github.com/GeneAssembly/biosal/issues/273
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>