Make examples/status.c compile on Windows
Make ** pattern eat trailing slash

This allows "foo/**/*.html" to match "foo/file.html"
Merge pull request #2320 from libgit2/rb/fix-starstar-again

Make ** pattern eat trailing slash
Merge pull request #2318 from linquize/sleep

Make examples/status.c compile on Windows
Read first 8000 bytes to determine binary file

This matches core-git and jgit behaviour
git_blob_is_binary() calls git_buf_text_contains_nul()

Drop git_buf_text_is_binary()