Fix arch detection on x86.