Use errorstream instead of std::cout in pathfinder.cpp