Probe if -32/-64 is supported by the target.

This makes those flags work on systems which have multilib support
without having to specify -H.
Based on idea from Juan RP.