ICodec / CodecContext: fix include for av_free

For some FFmpeg versions, we need to include <libavutil/mem.h> to get
av_free function.