EU agrees to help Libyan coastguards