Fix FFmpeg build issues