fixes to make parsav build on modern nix