Include a tunable maximum for memstr() to help work around bugs and DoS
attempts and so on.
Hide everything behind an ifdef sun.