path.cpp: fix compilation on some compilers