Fix typo (spotted by gabor)
Use different exeext variables for each stage; fixes #7709

Currently they are all set to the same value, but when cross-compiling
they could be set to different values.