[PATCH 3/4] build: Add x86 architecture type detection