Fix avx detection for gcc.

- GCC doesn't support _xgetbv intrinsic so we have to use inline assembler.