Please pull the attached (githubbed?) patches to (a) fix a niggly ctype(3) issue, (b) implement strnlen for systems that lack it, (c) implement fmemopen on systems that lack it in terms of funopen on systems that have it, and (d) hook it all up in the bui

Sorry, evidently GIthub wanted my summary to be shorter and truncated it.  The bit that got truncated said `This makes tlsdate build and pass ``make check'' on NetBSD 5.'.