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