Fixed compilation problem on mac with sizeof(void)