This version updated by J. Brandt Buckley <brandt@runlevel1.com> features macOS support and has a proper license.
Build-tested on x86_64 Linux & Mac.