Merge pull request #2026 from libgit2/rb/fix-strnlen-on-old-macos Use our strnlen on MacOS for backward compat