Freeport reshapes Indonesia business in deal with govt.