Add x86_64 support to detect.c