Fix BSON linking.