<sys/resource.h>

FreeBSD bits and some linux fixes