OK so I shouldn't have added cli_pipe.o to LIBSMB_OBJ.