Add bson_extract.cpp to client library