Added the include of sys/param.h to compile on FreeBSD.