Include config.h and use TARGET_X86 and TARGET_AMD64 instead of i386 and __x86_64__.