Support for Haiku requires the addition of the following line to the Makefile:

LIB.Haiku= -lnetwork -lbsd