Apply upstream patch that adapts to changes in latest vala. Closes https://github.com/NixOS/nixpkgs/issues/53864