Changed sharedredcode to use typedefs so that it can be used in the opencl
kernel as well. OpenCL kernel now has the redcode simulator in it.