Error building FLYPOOL nheqminer

I get an error on make on an newly installed debian (without graphical ui) on the make step.
It ends with recipe for target 'nheqminer' failed. I installed build-essential, make, qt5-default and then run the commands as their written on the github repo linked from the flypool homepage. Re-tried many times but no luck.

What can I do to start mining on this pool?

Compile this version of the nheqminer instead using the cmake method as stated on page.

Example usage (change accordingly)
./nheqminer -l -u your_t_wallet_address

sudo apt-get upgrade
sudo apt-get update
sudo apt install qt5-default
sudo apt-get install cmake build-essential libboost-all-dev
git clone GitHub - sarath-hotspot/nheqminer: Equihash miner for NiceHash
cd nheqminer/nheqminer
mkdir build
cd build
cmake …