build: fix out of tree builds.
stat: fix build on mingw.
build: bump libbson for out of tree build and size_t fix.