Paul Allen rips 'mercenary' Bill Gates in autobiography