fixed stdscr init for all platforms