better start-up scripts for sockets (resolves #16); fixed cmake quirks