fixed truncation of addresses on 64-bit systems (thanks, Robert, Behrad, and Christophe!)