Remove uses of PATH_MAX so codelite builds on GNU Hurd

This is the first of a few separate patches I've already applied to the Debian package.

This patch removes uses of PATH_MAX so that Codelite builds on GNU Hurd which doesn't define this constant.