Include <limits.h> when using PATH_MAX