Oil holds gains on shrinking US stockpiles