The 10XL should be fine on 4s in the truggy. In the buggy, the motor may not have enough load on it causing it to heat up more. It isn't a very high quality motor, so expect it to heat up under race conditions. Use BrianG's calculator to figure out the gearing:
http://www.scriptasylum.com/rc_speed/_top_speed.html