Change configure flags for target triples to match GNU

Rebase of #9990