Use platform-defined method of printing a pointer.

Casting a pointer to an unsigned long discards bits on an LLP64 system.

ok deraadt@