Add OS and CPU detection for AVX2 and AVX.