Project has been updated and removed pass by references that were not handled correctly according to g++. Also added the other cpp files to CMakeLists.txt to eliminate some linking errors. After adding appropriate paths to the PATH variable everything finally worked.