There is a regression in b181782e0e9554c49e0f8031696e985f91954df7 commit where ifdefs for HAVE_SYS_TIME_H has been removed and strings.h is included instead of string.h. There's also some calls to write instead of send in stub.c, calls to close in anchor.c, mkstemp.c is broken as well. This causes getdns build to fail on Windows or crash on runtime.