posix: Solaris doesn't have strnlen either