On systems without glibc, you might lack definition of PATH_MAX. This patch adds the limits.h header to solve this issue. PS: I will send this patch upstream latter