build: changed detection for i686/x86_64

Fixes compilation/feature detection on arm.