x64-upstream: Hack am and pm if system is really 64-bit