build: use mongoc-config.h.in for compile time options.

This is how it is done in libbson as well. Just define them in there and
use that throughout the public headers.