Fixed some external functions types and fixed compilation problem for the shortest path problem.