use -march for portability

-march=native automatically select -mavx if it is supported by host platform, so the test could be build if AVX is not supported.