build.sh: use stack-2.7.1
build.sh: use stack-2.7.1

stack-2.5 warns about not supporting Cabal-3.2 or ghc > 8.10

mrkkrp/stackage,Daniel-Diaz/stackage,simonmichael/stackage,iand675/stackage,jonschoning/stackage