miniupnpd/Makefile: remove -ansi flag
miniupnpd/Makefile: Link test programs with LIBS
miniupnpd: Use SA_LEN consistently