fix scramble[tab] instances syntax errors

e.g. error: use of undeclared identifier tab
rsl = ((state[0]&0x3ffff)^scramble[tab[state[1]&0xffff]]);

also fix wrong (void*)apply cast to (void) to suppress wrong
-Wint-to-pointer-cast