Oil rises modestly as U.S. crude stockpiles dwindle