with the error message
../lib/addns/dns.h:53:23: fatal error: uuid/uuid.h: No such file or directory
and
[altai@localhost openwrt]$ ls /usr/include/uuid/ | grep uuid
uuid.h
something seems to be very wrong with your build environment. This is obviously not a samba bug and I never encountered something like this on any other system where we compile samba. As a workaround for your broken setup you could comment out the uuid include and compile without dnsupdate support.