TS-1742: Fix the cmpxchg16 autoconf test

Make sure we don't add a gcc-specific option unless we really need
it. Switch from a run time check to a compile time check.