To compile on NetBSD you need GNU make. Otherwise the compile will crash when make tries to run lint on C++ files.
make
lint