cast: fix cast of void * when we don't have GCC features. I thought using sizeof() comparison to compare the types was clever, but it doesn't work on void pointers, as sizeof(void) is illegal.
cast: new limited cast package inspired by Jan Engelhardt's libhx.