Libya has agreed with EU and African leaders to allow refugees to be evacuated with extreme emergency.