fix freezr' post url

use AC_SEARCH_LIBS instead of AC_CHECK_LIB AC_CHECK_LIB is quite awful actually even if it has a nice name


add compat for endian.h (now required by imsg)

sync imsg

add missing #include "compat.h"

iri: refactor parse_{query,fragment} into a single function

add some extra tests for the iri parser

iri: copy portstr too

iri: make mergepath take a buffer and strings, not the iri pointers

iri: change remove_dot_segmens to take a buffer instead of an iri

iri: zero iri_flags before parsing

iri: use a temp buffer for %enc in iri_setquery

add some tests for iri_setquery

tests: tweak logging on iritest