(Reuters) - Microsoft Corp agreed to buy Internet telephone company Skype for $8.5 billion in cash in its biggest deal ever, as the technology giant seeks to plug a hole in its mobile offerings.