Improve Makefile.
Fix handling of nick changes.
Fix wrong selector name.
Adjust to ObjFW API and fix a disconnect bug.