Removed some warnings from the codebase

My project uses pretty strict compiler warnings. So I noticed that libbson has some issues with them.

This pull request enables -Wextra by default and fixes all warnings produced by it.