Fix configure for cross-compilation and --arch=amd64.