[k3b-extras-freeworld] Patch for gcc7