Converted to use c99 std again (by including hnetd.h where relevant).