Added include <sys/params> so that PATH_MAX is defined on FreeBSD.