Libya to spend $4.7 billion upgrading military