I'm not sure of the set up for the race, but were the "fluids" you took on water only, or were there sports drinks provided. If it was water only, then the salt that you lost in yout sweat could have caused cramp.
Also, were any of your long training runs done at marathon pace, and on roads? If you suddenly upped the speed for the distance, or were used to running on soft surfaces, the added impact could have caused the muscles to complain.