On systems without glibc, you might lack definition of PATH_MAX. This patch adds the limits.h header to solve this issue.