Oil extends gains on vaccine hopes, shrugs off U.S. inventory build