Possibly src/unix/fs.c or Makefile.am needs some tweaks to build on
your system. Pull request welcome.
It's currently assumed that mkdtemp() and utimensat() are available.
They're specified in the 2008 POSIX revision but it sounds like your
system predates that.