Sympathies. I hate getting cramp. I got it after about 93miles, wanted to do extra to get the 100mile but decided to go home.
Drink more water, keep nutrients high. I've read its due to a lack of water and also salt. So you need to keep your nutrients and fluid levels up.
Also, apparently stretching is good and should also help to prevent cramp.