The current version is very old and requires a lot of hacking, update to latest commit as the latest release was back in 2017 and switch to CMake.
This update also includes following commit from 3rd party repo for performance:
https://github.com/jhaws1982/crossguid/commit/23a8c007a668413c2e8cbd00984d223ed5ecfe05
PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253531