client: return more verbose errors

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Add dependencies to Makefile