Add template module definition to support libav avresample.