Sudan and South Sudan leaders agree basic freedoms