A couple of fixes: 1. Altivec code also uses VSX, so it should be enabled by default only on powerpc64le. Additionaly ENABLE_ALTIVEC needs to be specified along with CPU_POWER8. 2. Altivec code is 64-bit only, so the option should be removed on powerpc altogether. On powerpc64 it should stay non-default. 3. Altivec code works only with 8 bits and causes build issues elsewhere.