MidnightBSD may also not have strnlen
Merge pull request #2309 from jacquesg/midnightbsd

MidnightBSD may also not have strnlen