Update spim.c

spim version 6.5 is setup in a VM and is used in coursera compilers class.If people want to use the same VM in there class then need to rebuild the spim source which will give segmentation fault if compiler with gcc.