Fix missing includes. Fix image loading using ffmpeg when percent symbol in url.