Attempt to fix crash bug when starting leg to final destination. It must
be tested.
Dependencies in makefile corrected.