hex: Fix a couple of newlib warnings

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>