They were mostly missing <cmath> or <math.h>.
Looks like `nix-env -qaP --drv-path` is not enough and one need to either add `--json` too to catch problems like this... or just use `nox-review wip`.