Fix `compiler` build when `zstd` support is enabled
Fix compilation when zstd is enabled as it was broken by c80dd91c.
Also fix build when zstd is only found in an atypical path (e.g. under ghc.nix) by propagating paths found by top-level configure script to ghc library configure.
Fixes #26312 (closed).
Edited by Ben Gamari