TOKYO (Reuters) - Japanese mining equipment maker Komatsu Ltd has agreed to buy its smaller U.S. rival Joy Global Inc for about $3.7 billion including debt, its biggest-ever acquisition, to boost its clout in the mining industry.