tests: remove unused variable.
build: merge warning fixes for libbson on win32