need sys/param.h for MAXPATHLEN