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.
-march=native is available starting from gcc 4.7