Proper memory limit checking on FreeBSD. Fixes #521.
ifdef added
Merge branch 'issue521' of git://github.com/vadipp/cjdns into crashey