Modified the way arch is determined. 32 bit systems must use i686 target to access atomic_fetch_add instructions.