toolchain: fix avx optimisation build