KNF fixes
Use const char *.

Suggested by miod@
Clean up the remaining TTY related remnants.

ok miod@
The apps_{startup,shutdown} macro mess is now only used in openssl.c -
reduce the macro to two functions and just call them instead.

ok miod@
NON_MAIN no longer means anything so remove it, along with APP_INIT.

ok miod@
do_pipe_sig is now only used in openssl.c - just call signal() directly
from there instead and ditch the macro.
Fold in the zlib_cleanup macro.
KNF.