addr.c: add some missing includes (fixes freebsd build)