wine: apply upstream patch for 10.9

Closes #21791.
Add tests to ensure ENV.compiler is correct
gts: add netpbm dep, fix build

Fixes #22683.