Freebsd10 memlimit check and overlength-strings error workaround.

FYI: #570 also touches this line.