Compiling with WANT_LIBNH=1 and TARGETPFX=(...) failed because ioctl.o could not be found. This is because the targets are specified with the $(TARGETPFX) but the libnh targets consumed these targets without the $(TARGETPFX).