Fixed bson lib to work with BSONPure, undid changes here