Fixed OPCODE problems with x64.

Fixed some unsigned int to pointers causing problems on x64.