libfetch: merge NetBSD's common.c 1.29 too to reduce differences and fix a warning.