1. Buy the rights from the original owners (if you are the owner, you can re - license your code under a different license).
2. MS can reimplement from scratch the problematic pieces of code.
3. MS can hire someone to write these missing pieces for them.