Hi Matan,
Thanks for your interest in WiredTiger, and I'm sorry to hear that you're having a rough time getting it linked into MongoDB.
You're right that it's more of a MongoDB question than a WiredTiger question, but I can at least offer some context. MongoDB isn't tested in a way that allows it to treat WiredTiger as a separate library. There can be subtle changes over time that rely on new (or old) behaviour in WiredTiger, so linking against a different WiredTiger version risks correctness and performance issues.
The way MongoDB "consumes" WiredTiger is as a vendored dependency, where WiredTiger's source code is copied into the MongoDB repository and built alongside the rest of MongoDB. So the approach of linking it separately isn't well-covered ground.
Apologies if that's not the news you wanted to hear - if you have any WiredTiger-related questions, I'd be happy to provide further help.
Regards,
- Will