This adds target architecture checking based on https://github.com/petroules/solar-cmake/blob/master/TargetArch.cmake.
The target architecture detection is pretty good in quality but non resistant to deliberate tempering.
WITH_CYCLES_OPTIMIZED_KERNEL still makes kernel sse2 and sse3 build.
except on x86_64 then only kernel_sse3 is build as the architecture always has sse2.
I am currently adding the same detection + behaviour to to scons.