build: generate bson-config.h with platform information.