[guided]The auxiliary network is designed so that positive residual balance is supplied by the super-source and negative residual balance is drained into the super-sink. Define
\begin{align*}
V_+=\{v\in V:d(v)>0\},\qquad V_-=\{v\in V:d(v)<0\}.
\end{align*}
Since each original arc has one tail and one head, the sum over all vertices of outgoing residual flow minus incoming residual flow is zero. Therefore
\begin{align*}
\sum_{v\in V}d(v)=0,
\end{align*}
and hence the total positive demand equals the total negative demand:
\begin{align*}
B:=\sum_{v\in V_+}d(v)=\sum_{v\in V_-}(-d(v)).
\end{align*}
Construct $N=(V',A')$ by adjoining two new vertices $s$ and $t$, setting $V'=V\cup\{s,t\}$, adding an arc $s\to v$ for each $v\in V_+$, and adding an arc $v\to t$ for each $v\in V_-$. Define $C:A'\to\mathbb{Z}_{\geq0}$ by $C(a)=c(a)$ on original arcs, $C(s\to v)=d(v)$ for $v\in V_+$, and $C(v\to t)=-d(v)$ for $v\in V_-$. These capacities are nonnegative integers by the definitions of $V_+$, $V_-$, $c$, and $d$.
Define $G:A'\to\mathbb{R}_{\geq0}$ by $G(a)=g(a)$ on $A$, by $G(s\to v)=d(v)$ for $v\in V_+$, and by $G(v\to t)=-d(v)$ for $v\in V_-$. The bounds $0\leq g(a)\leq c(a)$ give $0\leq G(\alpha)\leq C(\alpha)$ for every arc $\alpha\in A'$.
It remains to check conservation at original vertices. If $v\in V_+$, then the added arc $s\to v$ contributes incoming flow $d(v)$, so conservation says
\begin{align*}
d(v)+\sum_{a\in A,\,\operatorname{head}(a)=v}g(a)=\sum_{a\in A,\,\operatorname{tail}(a)=v}g(a),
\end{align*}
which is exactly the residual balance equation. If $v\in V_-$, then the added arc $v\to t$ contributes outgoing flow $-d(v)$, so conservation says
\begin{align*}
\sum_{a\in A,\,\operatorname{head}(a)=v}g(a)=\sum_{a\in A,\,\operatorname{tail}(a)=v}g(a)+(-d(v)),
\end{align*}
again equivalent to the residual balance equation. If $v\notin V_+\cup V_-$, then $d(v)=0$ and no added arc is incident to $v$, so conservation is precisely the residual balance equation with zero right-hand side. Hence $G$ is an $s$-$t$ flow of value $B$ saturating all arcs out of $s$ and all arcs into $t$.[/guided]