Add missing ENABLE_CEF ifdef.
Misc.
Fix wrong computation of stop-distance in unit locomotion when the unit is in the air. This causes problems when running off edges/cliffs.