build: lib and client don't need shipped OS specific headers
ctl: close control socket on error when connecting