x86_64 support for detect.c