Fix id generation on Mario and other x86 platforms.