configure.ac: Fix the struct ucred detection

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>