win32/gcc 4.9 pedantic issues
fixes to ncurses handling