restore optional redirection of curses screen in ncurses_test.h

panel_stack_test needs this.
add target to check that all tests are memcheck clean