Corrected Makefile thanks to suggestions from pkgsrc-wip-discuss (OBATA Akio).
Now it correctly compiles using libevent, readline and check from pkgsrc.

TODO now corresponds to actual things to do in future.
Merge remote-tracking branch 'origin/master' into joyent