Fix build issues with libavcodec