Make sure you have libuuid installed on your system, precisely - it's "development" version. It is usually in util-linux package, so install util-linux-dev or the like.
I'm using Guix, if you do too - run this:
$ guix shell -m manifest.scmThen build a project using standard Zig's facility:
$ zig buildRun it:
$ zig-out/bin/uuidgen