Added support for new libav