Everton agree a £5m compensation deal with Southampton, paving the way for Ronald Koeman to become their new manager.