portability: fix void* <-> target address conversion confusion