Move bson from header only to being a dynamic library