Here's a bunch of fixes I've had laying around in my fork, let's reduce the diff.
#define ETIME ETIMEDOUT thing (which was missing in ANV anyway) into Meson instead of source code (FreeBSD bug 225324 for defining
ETIME in the system is not moving along..)
iterator_range as the right solution to the build failure I was seeing
<sys/sysmacros.h>: is it used?
hopefully all of these are uncontroversial :) but I can drop anything from here and split off into its own review if there's issues.