This also changes freeword to an intptr_t to ensure not only the first 4 bits of a pointer are tested on 64bit systems.