alloc: avoid arithmetic on void pointers.