Correct more typecasts on *alloc

More picky compiler