32bit implementation for distance_to_home

Allows to avoid 654m limit for distance to home. MWii code has to be
modified as well.