send_hello: fix mixed code and definition

Signed-off-by: Steven Barth <steven@midlink.org>
Add missing sys/time.h include to fix musl

Signed-off-by: Steven Barth <steven@midlink.org>