Microsoft partners with, buys shares in Inprise