lib: fix segment fault in Response::read; add simple Makefile