Fix libav-0.8 compilation