src: update most tools to new constructors

Signed-off-by: Jean Privat <jean@pryen.org>
contrib: update clients of lib

Signed-off-by: Jean Privat <jean@pryen.org>
tests:update because of line changes in lib

Signed-off-by: Jean Privat <jean@pryen.org>