So over the past few days I've had some trouble getting this to build on Kali Linux but have resolved it simply by running
CFLAGS=-fcommon ./build.sh
Rather than
./build.sh
If anyone else has been having issues like I have hopefully this at least gives them a easy to find fix for it.