Conditionalize use of --whole-archive on the platform plus compiler, rather than on the ABI. This fixes a regression caused by 7b24c6e5 (Use --whole-archive when linking integration tests on MinGW.).