Fixed compiling with ncursesw on FreeBSD