Fix path.cpp compilation error in mac clang