Adaptions for old libav versions