now compiles on 64-bit systems