Build curl and bson