Freebsd10 memlimit check and overlength-strings error workaround.