Fixes bug with ncurses and switching debug-logging into syslog-facility