lib-tests: test-io{cache|broker} need -lsocket to link.

Also fix some size_t format mismatch warnings.