Ensure only one of USE_GCC_ATOMICS or USE_TBB is defined
Includes addition of -march=i586 when building for i386 target
this ensures that instructions for gcc atomics are available to compiler

Use CMAKE_CXX_FLAGS not CXXFLAGS

Adjust to allow turning on tbb to prevent gcc atomics

Move arch test under FreeBSD

Remove tests surrounding gcc atomics use