realpath.c: error handling, define PATH_MAX if needed
as it was still not building for debian-Hurd, I took a look at realpath.c and added some error handling, in addition with the PATH_MAX define.
https://buildd.debian.org/status/package.php?p=grafx2#problem-2