Fix X86_64 bug in build script