[k3b-extras-freeworld] Patch for gcc6 and ffmpeg-3