POSIX compatibility and fixes
In dir.c the PATH_MAX macro is used but included with sys/types.h, I changed it to limits.h for better portability. Works perfectly on OSX now (also tested on linux Manjaro).
In dir.c the PATH_MAX macro is used but included with sys/types.h, I changed it to limits.h for better portability. Works perfectly on OSX now (also tested on linux Manjaro).