fix linking with static ffmpeg