Fix warnings.

Two sets of warnings: one about setresgid/setresuid prototypes in util.c, the
other about use of alloca() disabling stack protection in the unit tests.

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>