So after a couple of weeks I finally figured out how to build for linux. GCC9 cannot build this because of the various errors sprintf and strncpy give when you truncate on purpose.
To fix this in the makefile I changed the line
CC = $(LNXDEV)/$(PREFIX)gcc
to
CC =...