build: separate CPPFLAGS/CFLAGS.
build: include libtool flags.
build: try to make libbson a little easier to use as submodule.
build: more submodule work.
Revert "build: more submodule work."

This reverts commit 701546437eadc67533fe7c8382d9e662fcd33f58.
Revert "build: try to make libbson a little easier to use as submodule."

This reverts commit 875199b4665848af37b05edaeea0ce7c58c5c390.
build: only enable -flto on GCC.
build: distcheck should include optimizations and hardening.
ignore trailing whitespace in bson_json_reader_read
Merge pull request #28 from mongodb/CDRIVER_291

ignore trailing whitespace in bson_json_reader_read
build: ensure config/version/stdint are installed.
build: _BSD_SOURCE and _GNUC_SOURCE no longer required.
avoid max/min macro substitution

sometimes compilers/libraries contain max/min macros (for C++)
this may caase unclear error messages.
Fix for ssize_t/size_t re-definition error
MSVC C++ has ssize_t and size_t types already. There is no need to define them
Merge pull request #29 from mntmnt/mongo-master

C++ inclusion fixes.
fix trailing whitespace.
yajl: only define isnan and isinf if not defined.
build: ignore .exe from mingw builds.
fix an error in bson_json_reader_read

in the read callback for bson_json_reader_read, if the callback returned
-1, we did some meaningless work and wrote a nullbyte past the beginning
of an array.

Fix that up
build: disable lto for now.