It seems that in some situations, the host CC gets picked up. Just pass
the target one explicitly.
Refreshed patches.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
stdin, stderr and stdout are constants on musl and it doesn't provide
mallinfo.
Both, overwriting std* were used to catch and work around various
misbehaviours of glibc, so it's hopefully save to just skip them when
building against other libc implementations.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>