CP-!1827: Improve architecture support detection
Use built-in macros to detect AVX
and BlueGene
support. There compiler complains if flags like -mavx512f
is not provided but AVX specific functions are used, so there is no realistic risk of accidentally compiling for the wrong architecture.