Oil shrugs off US inventory build